/*
 * Copyright 2020 DuJiang.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.amorou.rest.crypto.boot;

import java.nio.charset.StandardCharsets;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * RestCryptoProperties
 * 
 * @author DuJiang
 */
@ConfigurationProperties(prefix = RestCryptoProperties.REST_CRYPTO_PREFIX)
public class RestCryptoProperties {

	public static final String REST_CRYPTO_PREFIX = "rest.crypto";

	private static final String ALGORITHMS = "AES";
	private static final String CHARSET = StandardCharsets.UTF_8.name();

	private String algorithms = ALGORITHMS;

	private String charset = CHARSET;

	private String aesKey;

	private String aesIv;

	public String getAlgorithms() {
		return algorithms;
	}

	public void setAlgorithms(String algorithms) {
		this.algorithms = algorithms;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getAesKey() {
		return aesKey;
	}

	public void setAesKey(String aesKey) {
		this.aesKey = aesKey;
	}

	public String getAesIv() {
		return aesIv;
	}

	public void setAesIv(String aesIv) {
		this.aesIv = aesIv;
	}

}
